<?php
namespace App\Http\Controllers;

use App\Http\Controllers\WebController;
use App\Http\Controllers\Business\MatlabModule;
use App\Http\Controllers\Business\PublicBusiness;
use Illuminate\Support\Facades\Cookie;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Facades\Excel;

class CommonController extends WebController
{
    //
    public function lngAndLatGet() {
        $address = $this->request->get('address');
        $result = PublicBusiness::getLongitudeAndLatitude($address);
        if($result['status'] == 'failed') {
            return $this->responseError($result['message']);
        }
        return $this->responseSuccessData($result['data']);
    }

}